package chaoyi.kuo.iching

/**
 * 爻變演算法
 * @author ChaoYi, Kuo
 * My Mail: Kuo.ChaoYi@gmail.com
 * 
 * @see http://sites.google.com/site/ichingorg/
 */
object YaoChange {
	
	/*
	 * 爻變
	 */
	val yaoChaonge = (gua64: List[Boolean], yao: Int) => !gua64(yao-1)
	
	
	/*
	 * 綜卦
	 */
	val reverseGua = (gua64: List[Boolean]) => gua64 reverse
	
	/*
	 * 錯卦
	 */
	val reverseYaoGua = (gua64: List[Boolean]) => gua64 map(!_)
	
	/*
	 * 互卦分上下
	 */

}
